<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core">

	<rich:modalPanel id="rechazarAnuncioModal" autosized="true" width="600"
		showWhenRendered="#{rechazos.mostrarRechazar}">
		<f:facet name="header">
			<h:panelGroup>
				<h:outputText value="#{messages['titulo.modal.RechazarAnuncio']}"></h:outputText>
			</h:panelGroup>
		</f:facet>
		<h:form>

			<rich:spacer height="20" />
			<h:panelGrid columns="2" columnClasses="width20,width80"
				styleClass="width100 centrado">
				<h:outputLabel
					value="#{messages['label.anuncio.evolucion.tmotivo']}"
					styleClass="labelTablon obligatorio" />
				<h:inputTextarea value="#{rechazos.evolucion.tmotivo}"
					styleClass="width100" required="true"
					label="#{messages['label.anuncio.evolucion.tmotivo']}">
					<f:validateLength maximum="300" />
				</h:inputTextarea>
			</h:panelGrid>

			<h:panelGrid styleClass="width100 derecha">
				<h:outputLabel value="#{messages['info.obligatorio']}"
					styleClass="nota obligatorio" />
			</h:panelGrid>

			<rich:spacer height="30" />

			<h:panelGrid columns="2" styleClass="width100 centrado">
				<a:commandButton title="#{messages['boton.cerrar']}"
					immediate="true" actionListener="#{rechazos.cerrarRechazar}"
					reRender="rechazarAnuncioModal" styleClass="icono32 cerrar" />
				<a:commandButton title="#{messages['boton.aceptar']}"
					actionListener="#{rechazos.rechazarAnuncio}"
					styleClass="icono32 ok"
					reRender="rechazarAnuncioModal,idTabBandeja" />
			</h:panelGrid>
		</h:form>
	</rich:modalPanel>

</ui:composition>